<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Perform PUT request with data</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.http-post-fields.html">http_post_fields</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.http-put-file.html">http_put_file</a></div>
 <div class="up"><a href="ref.http.html">HTTP 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.http-put-data" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">http_put_data</h1>
  <p class="verinfo">(PECL pecl_http &gt;= 0.25.0)</p><p class="refpurpose"><span class="refname">http_put_data</span> &mdash; <span class="dc-title">Perform PUT request with data</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.http-put-data-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>http_put_data</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$url</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter reference">&$info</code></span>
  ]] )</div>

  <p class="para rdfs-comment">
   Performs an HTTP PUT request on the supplied url.
  </p>
  <p class="para">请查阅完整的 <a href="http.request.options.html" class="link">request 选项组</a> 列表。</p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.http-put-data-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">url</code></em></dt>

     <dd>

      <p class="para">
       URL
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">data</code></em></dt>

     <dd>

      <p class="para">
       PUT request body
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">options</code></em></dt>

     <dd>

      <p class="para">
       <a href="http.request.options.html" class="link">request 选项组</a>
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">info</code></em></dt>

     <dd>

      <p class="para">
       <a href="function.http-get.html#http.request.info" class="link">请求/响应信息</a>
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.http-put-data-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时用字符串返回 HTTP 响应，失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>


 


 


 


 


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.http-post-fields.html">http_post_fields</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.http-put-file.html">http_put_file</a></div>
 <div class="up"><a href="ref.http.html">HTTP 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
